//
// Decompiled with: Decompiler.NET, Version=1.3.1.18439, Culture=neutral, PublicKeyToken=null, Version: 1.3.1.18439
// Decompilation Started at: 3/15/2009 10:34:26 PM
// Copyright 2003 - 2004, Jungle Creatures, Inc., All Rights Reserved. 
// Written by Jonathan Pierce, Email: support@junglecreatures.com
//

namespace PatientManagement

{
		
		#region Namespace Import Declarations
		
			using System.IO;
			using System;
			using System.Xml;
			
		#endregion
		
	public class Connection
	
	{
		
		#region Fields
			private const string appConfig = "config.txt";
		#endregion
		
		#region Constructors
		
			public Connection ()
			
			{
				return;
			}
			
		#endregion
		
		#region Methods
		
			public static string ConnectionString ()
			
			{
				Class theClass;
                string theString2 = string.Empty;
                string theString;
                //XmlDocument theXmlDocument;
                //XmlElement theXmlElement;
                //XmlNode theXmlNode;
				
                //theString = Environment.GetFolderPath(System.Environment.SpecialFolder.System).ToString();
                //if (File.Exists(string.Concat(theString, "/app.config")))
                //{
                    goto L_0024;
               // }
                
                goto L_0073;

            L_0024:
                {
                }
                //theXmlDocument = new XmlDocument();
                //theXmlDocument.Load(string.Concat(theString, "/app.config"));
                //theXmlElement = theXmlDocument.DocumentElement;
                //theXmlNode = theXmlElement.SelectSingleNode("//*[appSettings]");
                //theString2 = theXmlNode.InnerText.ToString();
                theString2 = System.Configuration.ConfigurationSettings.AppSettings.Get("DBConnectionString");
				//theClass = new Class ();
				//theString2 = theClass.Decrypt (theString2);
                //theString3 = "Data Source=192.168.1.13;Initial Catalog=LeHanhSystemVN;Persist Security Info=True;User ID=sa;Password=1234567";
				goto L_0073;
				
			L_0073:
				
				{
				}
				return theString2;
			}
			
		#endregion
	}
	
}

